package com.le.dub.controller;

import com.le.dub.service.IPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description: 支付
 * @Author: guole
 * @Date: 2023/3/16 11:10
 */
@RestController
@RequestMapping("/pay")
public class PayController {

    @Autowired
    private IPayService payService;


    @PostMapping("/wxCallback")
    String wxCallback(HttpServletRequest request) {
        try {
            payService.wxCallback(request);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "ok";
    }




}
